﻿@inherits Vowei.Web.G18nWebViewPage
@using System.Web.Mvc.Html
@using Vowei.Web.Helpers 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
	<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
	<link href="/Content/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
	<link href="/Content/jquery.ui.theme.css" rel="stylesheet" type="text/css" />
	<script src="@Url.Content("~/Scripts/jquery-1.4.4.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery.glob.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/globinfo/jQuery.glob.zh-CN.min.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery-ui-1.8.6.custom.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tmpl.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/models.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/vowei.main.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/json2.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/tinymce/tiny_mce.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/tinymce/jquery.tinymce.js")"></script>   
	<script src="@Url.Content("~/Scripts/protovis-r3.2.js")" type="text/javascript"></script>

	<script type="text/javascript">
        @{
        string culture = Request.UserLanguages == null ? "zh-cn" : Request.UserLanguages[0];
        }

	    $(document).ready(function () {
	        var acceptLanguage = "@culture";
            $.preferCulture(acceptLanguage);

            register_ajax_event_handlers();
            fix_input_boxes();
        });

        function format_date(date) {
            return date == null ? "" : $.format(date, "D");
        };

	    function register_ajax_event_handlers() {
	        $('body').ajaxError(function (e, xhr, settings, exception) {
	            window.alert("Ajax error: " + xhr.responseText);
	        });
	    };
	</script>
</head>

<body>
    <div class="page">

        <div id="header">
            <div id="title">
                <h1>@T("项目管理系统")</h1>
            </div>

            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>

            <table class="layout-grid" cellspacing="0" cellpadding="0">
              <tr>
                <td class="left-nav">
                   <dl class="demos-nav">
                      <dt>@T("项目管理")</dt>
                      <dd><a href="/Project/Progresses">@T("当前项目进度")</a></dd>
                      <dd><a href="/Project/My">@T("我的项目")</a></dd>                      
                      <dd><a href="/Project/">@T("所有项目")</a></dd>                      
                      <dt>@T("新建任务")</dt>
                      <dd><a href="/Project/Create">@T("创建项目")</a></dd>
                      <dd><a href="/Requirement/Create">@T("创建需求")</a></dd>
                      <dd><a href="/Task/Create">@T("创建任务")</a></dd>
                      <dt>@T("个人信息")</dt>
                      <dd><a href="/Task/My">@T("我的任务")</a></dd>
                      <dd><a href="/Account/ApplyVacation">@T("请假")</a></dd>
                      <dt>@T("配置管理")</dt>
                      <dd><a href="/Scm/Index">@T("浏览历史修改")</a></dd>
                      <dt>@T("团队管理")</dt>
                      <dd><a href="/User/Permission">@T("管理权限")</a></dd>
                      <dd><a href="/Account/ImportUsers">@T("从Excel导入团队成员")</a></dd>
                      <dt>@T("团队管理")</dt>
                   </dl>
                </td>
                <td class="content">
                     <div id="main">
                        @RenderBody()
                        <div id="footer">
                        </div>
                     </div>
                </td>
              </tr>
            </table>
        </div>
    </div>
</body>
</html>
